{% extends 'blank.html.twig' %}
{% block body %}
    <button class="uploadify-button" onclick="ApiRequest()">API请求</button>
{% endblock %}

{% block footer %}
    {{ parent() }}
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/huiadmin/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="/AbsSR/web/static/uploadify/jquery.uploadify.min.js"></script>
    <script type="text/javascript" src="/AbsSR/web/static/common/js/image.js"></script>
    <script type="text/javascript">
        function ApiRequest(){
            $.ajax({
                type:'get',
                url:'{{ path('validate_version') }}',
                headers:{
                    did:1111,
                    model:'xiaomi',
                    sign:'happykala',
                    version:1
                },
                data:{
                    app_type:'1',
                    version:1,
                },
                success:function(msg){
                    alert(msg);
                }
            });
        }
    </script>
{% endblock %}